package com.smedi.ismedi.constructionproject.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smedi.ismedi.constructionproject.core.application.query.vo.BidSectionVo;
import com.smedi.ismedi.constructionproject.core.port.adapter.persistence.model.BidSectionEntity;
import com.smedi.ismedi.database.starter.annotation.SqlItem;
import com.smedi.ismedi.database.starter.annotation.SqlPermission;
import com.smedi.ismedi.database.starter.interceptor.permission.SqlItemEnum;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: xulinjun
 * @Date: 2021-6-8 10:52
 */
@SqlPermission({
        @SqlItem(item = SqlItemEnum.project, table = {BidSectionEntity.class})
})
public interface BidSectionMapper extends BaseMapper<BidSectionEntity> {
    IPage<BidSectionVo> selectBidSectionInfoVoPagination(@Param("page") Page<BidSectionVo> page,
                                                         @Param("projectId") Long projectId);
}
